from django.conf.urls import url

from apps.goods import views

urlpatterns = [
    url(r'^list/(?P<category_id>\d+)/(?P<page_num>\d+)/$', views.ListView.as_view(), name='list'),  # 商品列表页
    url(r'^hot/(?P<category_id>\d+)/$', views.HotGoodsView.as_view(), name='hot'),  # 商品热销排行
    url(r'^detail/(?P<sku_id>\d+)/$', views.DetailView.as_view(), name='detail'),  # 商品详情页
    url(r'^comment/(?P<sku_id>\d+)/$', views.GoodsCommentView.as_view(), name='show_comments'),  # 订单商品评价信息
]
